package com.hsj.service.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author:Teacher黄
 * @date:Created at 2020/01/05
 */
@RestController
@RefreshScope
public class ConfigController {

    @Value("${web.name}")
    private String webName;

    @GetMapping("/service01/config")
    public String getConfig(){
        return webName;
    }

}
